

.carousel-box{
    width:100%;
    height:100vh;
    top:0;
    left:0;
    background-color:rgb(0, 0, 0, 0.8);
    position:fixed;
    z-index:10;
    display:none;
}

.gallery-grid{
    column-gap: .5rem;
}

.gallery-grid > figure {
    margin: 0;
    padding: 1rem;
    display: grid;
    grid-template-rows: 1fr auto;
    margin-bottom: .5rem;
    break-inside: avoid;
    overflow: hidden;
}

/* sm */
@media (min-width:576px){
    .gallery-grid{
        column-count: 2;
    }
}

/* lg */
@media (min-width:992px){
    .gallery-grid{
        column-count: 3;
    }
}

.img_box{
    width:95%;
    height:90vh;
    left:2.5%;
    top: 5vh;
    position:absolute;
}

.img_box>img{
    max-width: 100%;
    max-height: 100%;
    position:absolute;
    left:0;
    right:0;
    top:0;
    bottom:0;
    margin:auto;
}

.count-box{
    width:100%;
    padding:0px;
    position: absolute;
    bottom:20px;
    color:#D6D6D6;
    font-weight: bold;
    text-align: center;
}

.count-box-content{
    background-color:rgb(0, 0, 0, 0.4);
    border-radius: 10px;
    border: 1px solid black;
    display:inline-block;
    padding: 15px 30px;
}

.count-box-content>p{
    padding:0;
    margin:0;
}

.arrow-left,
.arrow-right{
    position:absolute;
    top:calc(50vh - 25px);
    bottom:calc(50vh - 25px);
    z-index:11;
    height:50px;
    width:50px;
    border:none;
    padding:0;
    background: none;
    font-size:40px;
    color: #D6D6D6;
    transition: color 0.2s ease-in-out;
}

.arrow-left:hover,
.arrow-right:hover{
    color:#ADADAD;
}

.arrow-left{
    left: 20px;
}
.arrow-right{
    right: 20px;
}


/* image action buttons */

.img-action-btns-list{
    width:fit-content;
    position:absolute;
    top:0;
    left:0;
}

.img-action-btn-box{
    width:2.8rem; 
    height:2.5rem;
    border-radius:50%;
    transition: all 0.1s ease-in-out;
}

.download_button,
.share-img-btn{
    font-size:1.75rem;
    font-weight: bold;
    cursor: pointer;
    color: #F8F9FA;
}

.close-carousel{
    position:absolute;
    top: 10px;
    right: 10px;
    font-size:1.7rem;
    padding: 0 .5rem;
    border-radius:50%;
    font-weight: bold;
    cursor: pointer;
    color: #F8F9FA;
    transition: all 0.1s ease-in-out;
}

.close-carousel:hover,
.img-action-btn-box:hover{
    background-color:rgb(73, 80, 87, 0.4);
}

.gallery-img-box{
    width:100%;
    padding:0;
    position: relative;
    cursor: pointer;
    overflow:hidden;
    -webkit-box-shadow: 0px 5px 10px 0px rgba(73, 80, 87, 1);
    -moz-box-shadow: 0px 5px 10px 0px rgba(73, 80, 87, 1);
    box-shadow: 0px 5px 10px 0px rgba(73, 80, 87, 1);
    transition: all 0.3s ease-in-out;
}


.gallery-img{
    display:block;
    width:100%;
    height:100%;
    transition: all 0.3s ease-in-out;
}

.gallery-img-overlay,
.blury-img{
    position: absolute; 
    display: inline-block;
    top: 0; 
    background: rgba(0, 0, 0, 0.2);
    width: 100%;
    height:100%;
    transition: all .3s ease-in-out;
    opacity:1;
    will-change: top;
}

.blury-img{
    background-size: cover !important;
    filter: blur(5px)
}


.gallery-img-box:hover{
    -webkit-box-shadow: 0px 2px 4px 0px rgba(73, 80, 87, 1);
    -moz-box-shadow: 0px 2px 4px 0px rgba(73, 80, 87, 1);
    box-shadow: 0px 2px 4px 0px rgba(73, 80, 87, 1);
}

.gallery-img-box:hover>.gallery-img-overlay{
    top:100%;
}
.gallery-img-box:hover>.gallery-img{
    transform: scale(1.3)
}

/* header buttons */

.header-buttons a{
    text-decoration: none
}

.header-button{
    border: 2px solid #495057 !important;
    background-color: transparent;
    color: #343A40 !important;
    font-weight: bold !important;
    font-size: 1rem !important;
    line-height: 1;
    border-radius: .5rem !important;
    padding: .5rem !important;
    transition: all .2s ease-in-out !important;
    border:none;
    -webkit-box-shadow: 5px 5px 6px -3px rgba(33, 37, 41, .8);
    -moz-box-shadow: 5px 5px 6px -3px rgba(33, 37, 41, .8);
    box-shadow: 5px 5px 6px -3px rgba(33, 37, 41, .8);
}

.header-button>i{
    font-size:1.2rem;
}

.header-button>span{
    color: #343A40 !important;
    transition: all .2s ease-in-out !important;
}

.header-button:hover{
    background-color: #D73348 !important;
    border: 2px solid #991E2F !important;
    color: #F8F9FA !important;
}
.header-button:hover>span{
    color: #F8F9FA !important;
}